package com.sumainfor.pc.gmio.service.impl;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.dao.DiManagementMapper;
import com.sumainfor.pc.gmio.dao.DiTenantBillMapper;
import com.sumainfor.pc.gmio.feign.Zfeign.ZpcMktFeign;
import com.sumainfor.pc.gmio.feign.Zfeign.ZzuulFeign;
import com.sumainfor.pc.gmio.service.DiManagementService;
import com.sumainfor.pc.gmio.service.DiTenantBillService;
import org.apache.commons.collections.MapUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;

/**租后主管分配服务中心
 */
@Service
public class DiManagementSerivceImpl implements DiManagementService {

    private ReentrantLock lock = new ReentrantLock(false);
    Logger log= LoggerFactory.getLogger(DiManagementSerivceImpl.class);
    @Autowired
    private DiManagementMapper diManagementMapper;
    @Autowired
    private ZpcMktFeign zpcMktFeign;
    @Autowired
    private ZzuulFeign zzuulFeign;

    /**
     * 查询租后主管所在服务中心下的人员列表
     * @param params
     * @return
     */
    @Override
    public JsonResult getDiManagementList(Map<String, Object> params) {
        //到网关查询人员的信息
        JsonResult result=zzuulFeign.getDiUserIdList(params);
        System.out.println("网关查询到的值:"+result);
        return result;
    }
}
